home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 May: Tool Chest / Developer CD Series Tool Chest (Apple Computer)(May 1999).iso / Tool Chest / Development Kits / MPW etc / MPW-GM / MPW / Examples / RIncludesExamples / FragmentSample.r
Encoding:
Text File  |  1998-12-03  |  932 b   |  38 lines  |  [TEXT/MPS ]

  1.  
  2. /*
  3.   FragmentSample.r
  4.   -- a sample 'cfrg' resource definition.
  5.   
  6.   
  7.   For PowerPC native import libraries and applications, make a cfrg resource.
  8.   For Applications be sure to use kIsApp and not kIsLib.
  9.   For Import Libraries be sure to use kIsLib not kIsApp.
  10.   
  11.   For application plug ins, see the conventions established by the application vendor.
  12.   
  13.   Making an import library:
  14.   Rez -i : Types.r CodeFragmentTypes.r {Active} -a -o myLib -t shlb -c cfrg
  15.   SetFile myLib -a iB
  16.  
  17.   Making an application:
  18.   Rez Types.r CodeFragmentTypes.r {Active} -a -o Application -t APPL
  19.  
  20.   This example is customized for building an application "MyApp"
  21.  
  22.   Change all occurences of  MyApp  to  YourApp   or YourLib
  23.   NOTE: ID must be zero.  
  24.  
  25. */
  26.  
  27. resource 'cfrg' (0) {
  28.    {
  29.       kPowerPC,
  30.       kFullLib,
  31.       kNoVersionNum,kNoVersionNum,
  32.       kDefaultStackSize, kNoAppSubFolder,
  33.       kIsApp,kOnDiskFlat,kZeroOffset,kWholeFork,
  34.       "MyApp"
  35.    }
  36. };
  37.  
  38.